<?php class Planets { 

    /***
     * DB Fields: id
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $id;

    /***
     * DB Fields: name
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $name;

    /***
     * DB Fields: photo
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $photo;

    /***
     * DB Fields: size
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $size;

    /***
     * DB Fields: tempMin
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $tempMin;

    /***
     * DB Fields: tempMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $tempMax;

    /***
     * DB Fields: position
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $position;

    /***
     * DB Fields: sizeBuilt
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $sizeBuilt;

    /***
     * DB Fields: metal
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $metal;

    /***
     * DB Fields: metalMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $metalMax;

    /***
     * DB Fields: crystal
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $crystal;

    /***
     * DB Fields: crystalMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $crystalMax;

    /***
     * DB Fields: deuterium
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $deuterium;

    /***
     * DB Fields: deuteriumMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $deuteriumMax;

    /***
     * DB Fields: energy
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $energy;

    /***
     * DB Fields: energyUsed
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $energyUsed;

    /***
     * DB Fields: modified
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $modified;

    /***
     * DB Fields: systemId
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $systemId;

    /***
     * DB Fields: userId
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $userId;

    /***
     * DB Fields: localPosition
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $localPosition;

    /***
     * DB Fields: metalPerHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $metalPerHour;

    /***
     * DB Fields: crystalPerHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $crystalPerHour;

    /***
     * DB Fields: deuteriumPerHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $deuteriumPerHour;

    /***
     * DB Fields: lastCheck
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $lastCheck;

    /***
     * DB Fields: lastUpdate
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $lastUpdate;

    /***
     * DB Fields: hasMoon
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $hasMoon;

    /***
     * DB Fields: metalRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $metalRatio;

    /***
     * DB Fields: crystalRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $crystalRatio;

    /***
     * DB Fields: deuteriumRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $deuteriumRatio;

    /***
     * DB Fields: fusionRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $fusionRatio;

    /***
     * DB Fields: metalEnergy
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $metalEnergy;

    /***
     * DB Fields: crystalEnergy
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $crystalEnergy;

    /***
     * DB Fields: deuteriumEnergy
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $deuteriumEnergy;

    /***
     * DB Fields: energyDeuterium
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $energyDeuterium;

    /***
     * DB Fields: metalSpaceDebris
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $metalSpaceDebris;

    /***
     * DB Fields: crystalSpaceDebris
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $crystalSpaceDebris;

    /***
     * DB Fields: speedBuild
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $speedBuild;

    /***
     * DB Fields: speedTech
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     **/
    var $speedTech;

//--------------- GET METHODS ----------------------------- //
    /***
     * Get value for field: id
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result id
     **/
    function get_id( ) {
        // returns the value of id
        return $this->id;
    }


    /***
     * Get value for field: name
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result name
     **/
    function get_name( ) {
        // returns the value of name
        return $this->name;
    }


    /***
     * Get value for field: photo
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result photo
     **/
    function get_photo( ) {
        // returns the value of photo
        return $this->photo;
    }


    /***
     * Get value for field: size
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result size
     **/
    function get_size( ) {
        // returns the value of size
        return $this->size;
    }


    /***
     * Get value for field: tempMin
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result tempMin
     **/
    function get_tempMin( ) {
        // returns the value of tempMin
        return $this->tempMin;
    }


    /***
     * Get value for field: tempMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result tempMax
     **/
    function get_tempMax( ) {
        // returns the value of tempMax
        return $this->tempMax;
    }


    /***
     * Get value for field: position
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result position
     **/
    function get_position( ) {
        // returns the value of position
        return $this->position;
    }


    /***
     * Get value for field: sizeBuilt
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result sizeBuilt
     **/
    function get_sizeBuilt( ) {
        // returns the value of sizeBuilt
        return $this->sizeBuilt;
    }


    /***
     * Get value for field: metal
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result metal
     **/
    function get_metal( ) {
        // returns the value of metal
        return $this->metal;
    }


    /***
     * Get value for field: metalMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result metalMax
     **/
    function get_metalMax( ) {
        // returns the value of metalMax
        return $this->metalMax;
    }


    /***
     * Get value for field: crystal
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result crystal
     **/
    function get_crystal( ) {
        // returns the value of crystal
        return $this->crystal;
    }


    /***
     * Get value for field: crystalMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result crystalMax
     **/
    function get_crystalMax( ) {
        // returns the value of crystalMax
        return $this->crystalMax;
    }


    /***
     * Get value for field: deuterium
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result deuterium
     **/
    function get_deuterium( ) {
        // returns the value of deuterium
        return $this->deuterium;
    }


    /***
     * Get value for field: deuteriumMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result deuteriumMax
     **/
    function get_deuteriumMax( ) {
        // returns the value of deuteriumMax
        return $this->deuteriumMax;
    }


    /***
     * Get value for field: energy
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result energy
     **/
    function get_energy( ) {
        // returns the value of energy
        return $this->energy;
    }


    /***
     * Get value for field: energyUsed
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result energyUsed
     **/
    function get_energyUsed( ) {
        // returns the value of energyUsed
        return $this->energyUsed;
    }


    /***
     * Get value for field: modified
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result modified
     **/
    function get_modified( ) {
        // returns the value of modified
        return $this->modified;
    }


    /***
     * Get value for field: systemId
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result systemId
     **/
    function get_systemId( ) {
        // returns the value of systemId
        return $this->systemId;
    }


    /***
     * Get value for field: userId
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result userId
     **/
    function get_userId( ) {
        // returns the value of userId
        return $this->userId;
    }


    /***
     * Get value for field: localPosition
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result localPosition
     **/
    function get_localPosition( ) {
        // returns the value of localPosition
        return $this->localPosition;
    }


    /***
     * Get value for field: metalPerHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result metalPerHour
     **/
    function get_metalPerHour( ) {
        // returns the value of metalPerHour
        return $this->metalPerHour;
    }


    /***
     * Get value for field: crystalPerHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result crystalPerHour
     **/
    function get_crystalPerHour( ) {
        // returns the value of crystalPerHour
        return $this->crystalPerHour;
    }


    /***
     * Get value for field: deuteriumPerHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result deuteriumPerHour
     **/
    function get_deuteriumPerHour( ) {
        // returns the value of deuteriumPerHour
        return $this->deuteriumPerHour;
    }


    /***
     * Get value for field: lastCheck
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result lastCheck
     **/
    function get_lastCheck( ) {
        // returns the value of lastCheck
        return $this->lastCheck;
    }


    /***
     * Get value for field: lastUpdate
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result lastUpdate
     **/
    function get_lastUpdate( ) {
        // returns the value of lastUpdate
        return $this->lastUpdate;
    }


    /***
     * Get value for field: hasMoon
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result hasMoon
     **/
    function get_hasMoon( ) {
        // returns the value of hasMoon
        return $this->hasMoon;
    }


    /***
     * Get value for field: metalRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result metalRatio
     **/
    function get_metalRatio( ) {
        // returns the value of metalRatio
        return $this->metalRatio;
    }


    /***
     * Get value for field: crystalRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result crystalRatio
     **/
    function get_crystalRatio( ) {
        // returns the value of crystalRatio
        return $this->crystalRatio;
    }


    /***
     * Get value for field: deuteriumRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result deuteriumRatio
     **/
    function get_deuteriumRatio( ) {
        // returns the value of deuteriumRatio
        return $this->deuteriumRatio;
    }


    /***
     * Get value for field: fusionRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result fusionRatio
     **/
    function get_fusionRatio( ) {
        // returns the value of fusionRatio
        return $this->fusionRatio;
    }


    /***
     * Get value for field: metalEnergy
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result metalEnergy
     **/
    function get_metalEnergy( ) {
        // returns the value of metalEnergy
        return $this->metalEnergy;
    }


    /***
     * Get value for field: crystalEnergy
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result crystalEnergy
     **/
    function get_crystalEnergy( ) {
        // returns the value of crystalEnergy
        return $this->crystalEnergy;
    }


    /***
     * Get value for field: deuteriumEnergy
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result deuteriumEnergy
     **/
    function get_deuteriumEnergy( ) {
        // returns the value of deuteriumEnergy
        return $this->deuteriumEnergy;
    }


    /***
     * Get value for field: energyDeuterium
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result energyDeuterium
     **/
    function get_energyDeuterium( ) {
        // returns the value of energyDeuterium
        return $this->energyDeuterium;
    }


    /***
     * Get value for field: metalSpaceDebris
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result metalSpaceDebris
     **/
    function get_metalSpaceDebris( ) {
        // returns the value of metalSpaceDebris
        return $this->metalSpaceDebris;
    }


    /***
     * Get value for field: crystalSpaceDebris
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result crystalSpaceDebris
     **/
    function get_crystalSpaceDebris( ) {
        // returns the value of crystalSpaceDebris
        return $this->crystalSpaceDebris;
    }


    /***
     * Get value for field: speedBuild
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result speedBuild
     **/
    function get_speedBuild( ) {
        // returns the value of speedBuild
        return $this->speedBuild;
    }


    /***
     * Get value for field: speedTech
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @result speedTech
     **/
    function get_speedTech( ) {
        // returns the value of speedTech
        return $this->speedTech;
    }


//--------------- SET METHODS ----------------------------- //
    /***
     * Set value for field: id
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param id
     * @result void
     **/
    function set_id( $id ) {
        // sets the value of id
        $this->id = $id;
    }

    /***
     * Set value for field: name
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param name
     * @result void
     **/
    function set_name( $name ) {
        // sets the value of name
        $this->name = $name;
    }

    /***
     * Set value for field: photo
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param photo
     * @result void
     **/
    function set_photo( $photo ) {
        // sets the value of photo
        $this->photo = $photo;
    }

    /***
     * Set value for field: size
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param size
     * @result void
     **/
    function set_size( $size ) {
        // sets the value of size
        $this->size = $size;
    }

    /***
     * Set value for field: tempMin
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param tempMin
     * @result void
     **/
    function set_tempMin( $tempMin ) {
        // sets the value of tempMin
        $this->tempMin = $tempMin;
    }

    /***
     * Set value for field: tempMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param tempMax
     * @result void
     **/
    function set_tempMax( $tempMax ) {
        // sets the value of tempMax
        $this->tempMax = $tempMax;
    }

    /***
     * Set value for field: position
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param position
     * @result void
     **/
    function set_position( $position ) {
        // sets the value of position
        $this->position = $position;
    }

    /***
     * Set value for field: sizeBuilt
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param sizeBuilt
     * @result void
     **/
    function set_sizeBuilt( $sizeBuilt ) {
        // sets the value of sizeBuilt
        $this->sizeBuilt = $sizeBuilt;
    }

    /***
     * Set value for field: metal
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param metal
     * @result void
     **/
    function set_metal( $metal ) {
        // sets the value of metal
        $this->metal = $metal;
    }

    /***
     * Set value for field: metalMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param metalMax
     * @result void
     **/
    function set_metalMax( $metalMax ) {
        // sets the value of metalMax
        $this->metalMax = $metalMax;
    }

    /***
     * Set value for field: crystal
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param crystal
     * @result void
     **/
    function set_crystal( $crystal ) {
        // sets the value of crystal
        $this->crystal = $crystal;
    }

    /***
     * Set value for field: crystalMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param crystalMax
     * @result void
     **/
    function set_crystalMax( $crystalMax ) {
        // sets the value of crystalMax
        $this->crystalMax = $crystalMax;
    }

    /***
     * Set value for field: deuterium
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param deuterium
     * @result void
     **/
    function set_deuterium( $deuterium ) {
        // sets the value of deuterium
        $this->deuterium = $deuterium;
    }

    /***
     * Set value for field: deuteriumMax
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param deuteriumMax
     * @result void
     **/
    function set_deuteriumMax( $deuteriumMax ) {
        // sets the value of deuteriumMax
        $this->deuteriumMax = $deuteriumMax;
    }

    /***
     * Set value for field: energy
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param energy
     * @result void
     **/
    function set_energy( $energy ) {
        // sets the value of energy
        $this->energy = $energy;
    }

    /***
     * Set value for field: energyUsed
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param energyUsed
     * @result void
     **/
    function set_energyUsed( $energyUsed ) {
        // sets the value of energyUsed
        $this->energyUsed = $energyUsed;
    }

    /***
     * Set value for field: modified
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param modified
     * @result void
     **/
    function set_modified( $modified ) {
        // sets the value of modified
        $this->modified = $modified;
    }

    /***
     * Set value for field: systemId
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param systemId
     * @result void
     **/
    function set_systemId( $systemId ) {
        // sets the value of systemId
        $this->systemId = $systemId;
    }

    /***
     * Set value for field: userId
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param userId
     * @result void
     **/
    function set_userId( $userId ) {
        // sets the value of userId
        $this->userId = $userId;
    }

    /***
     * Set value for field: localPosition
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param localPosition
     * @result void
     **/
    function set_localPosition( $localPosition ) {
        // sets the value of localPosition
        $this->localPosition = $localPosition;
    }

    /***
     * Set value for field: metalPerHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param metalPerHour
     * @result void
     **/
    function set_metalPerHour( $metalPerHour ) {
        // sets the value of metalPerHour
        $this->metalPerHour = $metalPerHour;
    }

    /***
     * Set value for field: crystalPerHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param crystalPerHour
     * @result void
     **/
    function set_crystalPerHour( $crystalPerHour ) {
        // sets the value of crystalPerHour
        $this->crystalPerHour = $crystalPerHour;
    }

    /***
     * Set value for field: deuteriumPerHour
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param deuteriumPerHour
     * @result void
     **/
    function set_deuteriumPerHour( $deuteriumPerHour ) {
        // sets the value of deuteriumPerHour
        $this->deuteriumPerHour = $deuteriumPerHour;
    }

    /***
     * Set value for field: lastCheck
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param lastCheck
     * @result void
     **/
    function set_lastCheck( $lastCheck ) {
        // sets the value of lastCheck
        $this->lastCheck = $lastCheck;
    }

    /***
     * Set value for field: lastUpdate
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param lastUpdate
     * @result void
     **/
    function set_lastUpdate( $lastUpdate ) {
        // sets the value of lastUpdate
        $this->lastUpdate = $lastUpdate;
    }

    /***
     * Set value for field: hasMoon
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param hasMoon
     * @result void
     **/
    function set_hasMoon( $hasMoon ) {
        // sets the value of hasMoon
        $this->hasMoon = $hasMoon;
    }

    /***
     * Set value for field: metalRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param metalRatio
     * @result void
     **/
    function set_metalRatio( $metalRatio ) {
        // sets the value of metalRatio
        $this->metalRatio = $metalRatio;
    }

    /***
     * Set value for field: crystalRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param crystalRatio
     * @result void
     **/
    function set_crystalRatio( $crystalRatio ) {
        // sets the value of crystalRatio
        $this->crystalRatio = $crystalRatio;
    }

    /***
     * Set value for field: deuteriumRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param deuteriumRatio
     * @result void
     **/
    function set_deuteriumRatio( $deuteriumRatio ) {
        // sets the value of deuteriumRatio
        $this->deuteriumRatio = $deuteriumRatio;
    }

    /***
     * Set value for field: fusionRatio
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param fusionRatio
     * @result void
     **/
    function set_fusionRatio( $fusionRatio ) {
        // sets the value of fusionRatio
        $this->fusionRatio = $fusionRatio;
    }

    /***
     * Set value for field: metalEnergy
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param metalEnergy
     * @result void
     **/
    function set_metalEnergy( $metalEnergy ) {
        // sets the value of metalEnergy
        $this->metalEnergy = $metalEnergy;
    }

    /***
     * Set value for field: crystalEnergy
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param crystalEnergy
     * @result void
     **/
    function set_crystalEnergy( $crystalEnergy ) {
        // sets the value of crystalEnergy
        $this->crystalEnergy = $crystalEnergy;
    }

    /***
     * Set value for field: deuteriumEnergy
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param deuteriumEnergy
     * @result void
     **/
    function set_deuteriumEnergy( $deuteriumEnergy ) {
        // sets the value of deuteriumEnergy
        $this->deuteriumEnergy = $deuteriumEnergy;
    }

    /***
     * Set value for field: energyDeuterium
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param energyDeuterium
     * @result void
     **/
    function set_energyDeuterium( $energyDeuterium ) {
        // sets the value of energyDeuterium
        $this->energyDeuterium = $energyDeuterium;
    }

    /***
     * Set value for field: metalSpaceDebris
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param metalSpaceDebris
     * @result void
     **/
    function set_metalSpaceDebris( $metalSpaceDebris ) {
        // sets the value of metalSpaceDebris
        $this->metalSpaceDebris = $metalSpaceDebris;
    }

    /***
     * Set value for field: crystalSpaceDebris
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param crystalSpaceDebris
     * @result void
     **/
    function set_crystalSpaceDebris( $crystalSpaceDebris ) {
        // sets the value of crystalSpaceDebris
        $this->crystalSpaceDebris = $crystalSpaceDebris;
    }

    /***
     * Set value for field: speedBuild
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param speedBuild
     * @result void
     **/
    function set_speedBuild( $speedBuild ) {
        // sets the value of speedBuild
        $this->speedBuild = $speedBuild;
    }

    /***
     * Set value for field: speedTech
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param speedTech
     * @result void
     **/
    function set_speedTech( $speedTech ) {
        // sets the value of speedTech
        $this->speedTech = $speedTech;
    }

//--------------- CRUD METHODS ----------------------------- //
    /***
     * Create a new Record: planets
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param id
     * @param name
     * @param photo
     * @param size
     * @param tempMin
     * @param tempMax
     * @param position
     * @param sizeBuilt
     * @param metal
     * @param metalMax
     * @param crystal
     * @param crystalMax
     * @param deuterium
     * @param deuteriumMax
     * @param energy
     * @param energyUsed
     * @param modified
     * @param systemId
     * @param userId
     * @param localPosition
     * @param metalPerHour
     * @param crystalPerHour
     * @param deuteriumPerHour
     * @param lastCheck
     * @param lastUpdate
     * @param hasMoon
     * @param metalRatio
     * @param crystalRatio
     * @param deuteriumRatio
     * @param fusionRatio
     * @param metalEnergy
     * @param crystalEnergy
     * @param deuteriumEnergy
     * @param energyDeuterium
     * @param metalSpaceDebris
     * @param crystalSpaceDebris
     * @param speedBuild
     * @param speedTech
     * @result void
     **/
    function createnew_planets( $id, $name, $photo, $size, $tempMin, $tempMax, $position, $sizeBuilt, $metal, $metalMax, $crystal, $crystalMax, $deuterium, $deuteriumMax, $energy, $energyUsed, $modified, $systemId, $userId, $localPosition, $metalPerHour, $crystalPerHour, $deuteriumPerHour, $lastCheck, $lastUpdate, $hasMoon, $metalRatio, $crystalRatio, $deuteriumRatio, $fusionRatio, $metalEnergy, $crystalEnergy, $deuteriumEnergy, $energyDeuterium, $metalSpaceDebris, $crystalSpaceDebris, $speedBuild, $speedTech ) {

        // items to be inserted in the database 
        $_obj = array($id,
                      $name,
                      $photo,
                      $size,
                      $tempMin,
                      $tempMax,
                      $position,
                      $sizeBuilt,
                      $metal,
                      $metalMax,
                      $crystal,
                      $crystalMax,
                      $deuterium,
                      $deuteriumMax,
                      $energy,
                      $energyUsed,
                      $modified,
                      $systemId,
                      $userId,
                      $localPosition,
                      $metalPerHour,
                      $crystalPerHour,
                      $deuteriumPerHour,
                      $lastCheck,
                      $lastUpdate,
                      $hasMoon,
                      $metalRatio,
                      $crystalRatio,
                      $deuteriumRatio,
                      $fusionRatio,
                      $metalEnergy,
                      $crystalEnergy,
                      $deuteriumEnergy,
                      $energyDeuterium,
                      $metalSpaceDebris,
                      $crystalSpaceDebris,
                      $speedBuild,
                      $speedTech); 

        // database object connection
        $dbConn = $GLOBALS['dbConn'];

        // perform insert in the database
        $dbConn->insert("planets", $_obj);
    }

    /***
     * Retrived an existing record: planets
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param id
     * @result new Planets
     **/
    function get_planets( $id ) {

        // retrive the data
        $dbConn = $GLOBALS['dbConn'];

        // retrieved value in the database
        $_resultSet = $dbConn->doQuery("SELECT * FROM planets WHERE id = '$id'");

        $__planetsObj = new planets();
        // return the retrived from the database

        // create a new object
        $__obj = new Planets();
        $__obj->set_id($_resultSet[0]['id']);
        $__obj->set_name($_resultSet[0]['name']);
        $__obj->set_photo($_resultSet[0]['photo']);
        $__obj->set_size($_resultSet[0]['size']);
        $__obj->set_tempMin($_resultSet[0]['tempMin']);
        $__obj->set_tempMax($_resultSet[0]['tempMax']);
        $__obj->set_position($_resultSet[0]['position']);
        $__obj->set_sizeBuilt($_resultSet[0]['sizeBuilt']);
        $__obj->set_metal($_resultSet[0]['metal']);
        $__obj->set_metalMax($_resultSet[0]['metalMax']);
        $__obj->set_crystal($_resultSet[0]['crystal']);
        $__obj->set_crystalMax($_resultSet[0]['crystalMax']);
        $__obj->set_deuterium($_resultSet[0]['deuterium']);
        $__obj->set_deuteriumMax($_resultSet[0]['deuteriumMax']);
        $__obj->set_energy($_resultSet[0]['energy']);
        $__obj->set_energyUsed($_resultSet[0]['energyUsed']);
        $__obj->set_modified($_resultSet[0]['modified']);
        $__obj->set_systemId($_resultSet[0]['systemId']);
        $__obj->set_userId($_resultSet[0]['userId']);
        $__obj->set_localPosition($_resultSet[0]['localPosition']);
        $__obj->set_metalPerHour($_resultSet[0]['metalPerHour']);
        $__obj->set_crystalPerHour($_resultSet[0]['crystalPerHour']);
        $__obj->set_deuteriumPerHour($_resultSet[0]['deuteriumPerHour']);
        $__obj->set_lastCheck($_resultSet[0]['lastCheck']);
        $__obj->set_lastUpdate($_resultSet[0]['lastUpdate']);
        $__obj->set_hasMoon($_resultSet[0]['hasMoon']);
        $__obj->set_metalRatio($_resultSet[0]['metalRatio']);
        $__obj->set_crystalRatio($_resultSet[0]['crystalRatio']);
        $__obj->set_deuteriumRatio($_resultSet[0]['deuteriumRatio']);
        $__obj->set_fusionRatio($_resultSet[0]['fusionRatio']);
        $__obj->set_metalEnergy($_resultSet[0]['metalEnergy']);
        $__obj->set_crystalEnergy($_resultSet[0]['crystalEnergy']);
        $__obj->set_deuteriumEnergy($_resultSet[0]['deuteriumEnergy']);
        $__obj->set_energyDeuterium($_resultSet[0]['energyDeuterium']);
        $__obj->set_metalSpaceDebris($_resultSet[0]['metalSpaceDebris']);
        $__obj->set_crystalSpaceDebris($_resultSet[0]['crystalSpaceDebris']);
        $__obj->set_speedBuild($_resultSet[0]['speedBuild']);
        $__obj->set_speedTech($_resultSet[0]['speedTech']);


        return $__obj;
    }

    /***
     * Update an existing record: planets
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param id
     * @param itemsToBeUpdated = array()
     * @result void
     **/
    function update_planets( $id, $itemsToBeUpdated = array() ) {

         // get database connection
         $dbConn = $GLOBALS['dbConn'];

         // performs update in the database
         foreach($itemsToBeUpdated as $_fName => $_fVal) { 
               $dbConn->addValuePair($_fName, $_fVal);
         }

         // perform update operation
         $dbConn->update("planets", "id = '$id'");
    }

    /***
     * Delete an existing record: planets
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param id
     * @result void
     **/
    function delete_planets( $id ) {

         // get database connection
         $dbConn = $GLOBALS['dbConn'];

         // performs deletion of data
         $dbConn->delete("planets", "id = '$id'");
    }

    /***
     * Retrived list of objects base on a given parameters: planets
     *
     *
     * THIS IS a generated method using the DBClassGenerator 
     * created by John paul de Guzman <jpdguzman@gmail.com> 
     *
     * @param conditionalStatement = ''
     * @result collection of objects: Planets
     **/
    function list_planets( $conditionalStatement = '' ) {

         $dbConn = $GLOBALS['dbConn'];
         // check if there is a given parameter list
         if(!empty($conditionalStatement)) { 
              $sqlStatement = "SELECT * FROM planets WHERE $conditionalStatement"; 
         } else { 
              $sqlStatement = "SELECT * FROM planets";
         }

         // retrieve the values base on the query result
         $__resObj = $dbConn->doQuery($sqlStatement);

         $__collectionOfObjects = array();
         foreach($__resObj as $__rs) { 
            $__newObj = new Planets();

            $__newObj->set_id($__rs['id']);
            $__newObj->set_name($__rs['name']);
            $__newObj->set_photo($__rs['photo']);
            $__newObj->set_size($__rs['size']);
            $__newObj->set_tempMin($__rs['tempMin']);
            $__newObj->set_tempMax($__rs['tempMax']);
            $__newObj->set_position($__rs['position']);
            $__newObj->set_sizeBuilt($__rs['sizeBuilt']);
            $__newObj->set_metal($__rs['metal']);
            $__newObj->set_metalMax($__rs['metalMax']);
            $__newObj->set_crystal($__rs['crystal']);
            $__newObj->set_crystalMax($__rs['crystalMax']);
            $__newObj->set_deuterium($__rs['deuterium']);
            $__newObj->set_deuteriumMax($__rs['deuteriumMax']);
            $__newObj->set_energy($__rs['energy']);
            $__newObj->set_energyUsed($__rs['energyUsed']);
            $__newObj->set_modified($__rs['modified']);
            $__newObj->set_systemId($__rs['systemId']);
            $__newObj->set_userId($__rs['userId']);
            $__newObj->set_localPosition($__rs['localPosition']);
            $__newObj->set_metalPerHour($__rs['metalPerHour']);
            $__newObj->set_crystalPerHour($__rs['crystalPerHour']);
            $__newObj->set_deuteriumPerHour($__rs['deuteriumPerHour']);
            $__newObj->set_lastCheck($__rs['lastCheck']);
            $__newObj->set_lastUpdate($__rs['lastUpdate']);
            $__newObj->set_hasMoon($__rs['hasMoon']);
            $__newObj->set_metalRatio($__rs['metalRatio']);
            $__newObj->set_crystalRatio($__rs['crystalRatio']);
            $__newObj->set_deuteriumRatio($__rs['deuteriumRatio']);
            $__newObj->set_fusionRatio($__rs['fusionRatio']);
            $__newObj->set_metalEnergy($__rs['metalEnergy']);
            $__newObj->set_crystalEnergy($__rs['crystalEnergy']);
            $__newObj->set_deuteriumEnergy($__rs['deuteriumEnergy']);
            $__newObj->set_energyDeuterium($__rs['energyDeuterium']);
            $__newObj->set_metalSpaceDebris($__rs['metalSpaceDebris']);
            $__newObj->set_crystalSpaceDebris($__rs['crystalSpaceDebris']);
            $__newObj->set_speedBuild($__rs['speedBuild']);
            $__newObj->set_speedTech($__rs['speedTech']);

            // add object to collection 
            array_push($__collectionOfObjects, $__newObj);
         }

         // return collection of objects
         return $__collectionOfObjects;
    }

} ?>